[Linq-To-Sql]How to return two values of different datatypes?

Posted by Pandiya Chendur on Stack Overflow See other posts from Stack Overflow or by Pandiya Chendur
Published on 2010-05-18T13:12:48Z Indexed on 2010/05/18 13:20 UTC
Read the original article Hit count: 125

Filed under:
|
|
|
|

Here is my repository method which returns UserId ,

public IQueryable<int> getLoginStatus(string emailId, string password)
{
    return (from r in taxidb.Registrations
           where (r.EmailId == emailId && r.Password == password)
           select r.UserId);
}

How to return UserName which is a string along with UserId... Any suggestion?

© Stack Overflow or respective owner

Related posts about linq-to-sql

Related posts about iqueryable